Book Review: Computational Semantics with Functional Programming by Jan van Eijck and Christina Unger

نویسنده

  • Robin Cooper
چکیده

There has been a recent intensification of interest in " semantics " in computational linguistics. I write the word in scare quotes because there are very different views of what computational semantics is. Broadly, it divides into the view that word meaning can be modeled in distributional terms and the view that meaning is to be viewed in terms of model theory of the kind employed in formal semantics deriving from the seminal work of Richard Montague (1974). This book is firmly placed in the latter logic-based semantics camp. If you want to learn about the logical approach to computational semantics there are three basic texts you can go to: Blackburn and Bos (2005), which uses Prolog; Bird, Klein, and Loper (2009, chapter 10), which covers the essential aspects of Blackburn and Bos using Python within the popular Natural Language Toolkit (NLTK); and the present book, which uses the functional programming language Haskell. All three of these references will teach you both semantics and the required programming skills at the same time. So how do you choose between them? One relevant issue is the choice of programming language. Prolog, a logic programming language, seems like a natural choice for logic-based semantics and, indeed, as Blackburn and Bos show, it provides support for writing concise and transparent code which is close to the kind of formalism used in theoretical logic-based semantics. It is not without its problems, however. Prolog variables are associated with unification-based binding, which is not the same as the kind of binding by quantifiers and operators that is used in logic. A second problem is that Prolog is a relation-based language and does not have a direct implementation of functions that return a value. Formal semantics building on Montague's work makes heavy use of the λ-calculus with λ-expressions denoting functions, and semantic composition is largely defined in terms of function-argument application. Blackburn and Bos implement a version of the λ-calculus in Prolog but this leads to a third problem: Formal semantics uses a typed version of the λ-calculus, yet standard Prolog is not a typed language (apart from making basic distinctions between integers, lists, etc.). Python, being object-oriented, allows a partial solution to the typing problem and it also has functions. It is a very flexible language and allows transparent coding of semantic formalisms by its powerful string processing. But coding semantic formalisms in terms of strings, although …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Computational Semantics with Functional Programming

ing from the domain of discourse, we can say that determiner interpretations (henceforth simply called determiners) pick out binary relations on sets of individuals, on arbitrary domains of discourse E. The notation is DEAB. We call A the restriction of the quantifier and B its body. If DEAB is the translation of a simple sentence consisting of a quantified noun phrase with an intransitive verb...

متن کامل

The Epistemics of Presupposition Projection

Pragmatic accounts of presupposition projection go back to work of Karttunen and Stalnaker, who proposed that presuppositions are requirements on the common ground and that their projection behaviour should follow from the way this common ground is updated in a discourse. This idea has been worked out by various authors who made the idea of shifting context precise, most notably Heim 1983, and ...

متن کامل

The language of social software

Computer software is written in languages like C, Java or Haskell. In many cases social software is written in natural language. The talk will explore connections between the areas of natural language analysis and social software. References: Jan van Eijck/Rineke Verbrugge (eds) Discourses on Games, Action and Social Software: http://www.cwi.nl/~jve/nias/discourses/discourses.pdf Jan van Eijck/...

متن کامل

Computational Semantics with Functional Programming, byJan van Eijck andChristina Unger

One of the fundamental tasks of science is to find explainable relationships between observed phenomena. One approach to this task that has received attention in recent years is based on probabilistic graphical modelling with sparsity constraints on model structures. In this paper, we describe two new approaches to Bayesian inference of sparse structures of Gaussian graphical models (GGMs). One...

متن کامل

2 4 D ec 2 00 5 — Review , submitted to JoLLI — Kees Doets and Jan van Eijck “ The Haskell Road to Logic , Maths and Programming ”

In university curricula, the subjects of programming and maths and logic tend to be separated. For instance, in the typical computer-science curriculum, mathematics and logic are taught according to the (dry) mathematical tradition, perhaps with modern concessions to help the less abstract minds. One sort of concession is to illustrate the implementability of selected mathematical concepts in s...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012